package com.example.schoolmanage.domain;

import lombok.Data;

import java.util.List;

/**
 * 作者：阿远
 * 描述：no bug
 */
@Data

public class ResultData<T> {

    private boolean flag;

    private String msg;

    private T data;

    private List<T> datal;
    //private List<Course> courses;

    public ResultData(boolean flag, String msg){
        this.flag = flag;
        this.msg = msg;
    }

    public ResultData(boolean flag, String msg, List<T> datal){
        this.flag = flag;
        this.msg = msg;
        this.datal = datal;
    }

    public ResultData(boolean flag, String msg,T data){
        this.flag = flag;
        this.msg = msg;
        this.data = data;
    }
}
